// ******************************************************************************
// Copyright     :  Copyright (C) 2020, Hisilicon Technologies Co. Ltd.
// File name     :  lcam_c_union_define.h
// Project line  :
// Department    :
// Author        :  xxx
// Version       :  1.0
// Date          :
// Description   :  xxx
// Others        :  Generated automatically by nManager V5.1
// History       :  xxx 2020/05/14 16:55:24 Create file
// ******************************************************************************

#ifndef LCAM_C_UNION_DEFINE_H
#define LCAM_C_UNION_DEFINE_H

/* Define the union csr_lcam_version_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_version : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_version_u;

/* Define the union csr_lcam_indrect_ctrl_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_indrect_addr : 5;   /* [4:0] */
        u32 rsv_0 : 19;              /* [23:5] */
        u32 lcam_indrect_tab : 1;    /* [24] */
        u32 rsv_1 : 3;               /* [27:25] */
        u32 lcam_indrect_status : 2; /* [29:28] */
        u32 lcam_indrect_mode : 1;   /* [30] */
        u32 lcam_indrect_vld : 1;    /* [31] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_indrect_ctrl_u;

/* Define the union csr_lcam_indrect_timeout_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_indrect_timeout : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_indrect_timeout_u;

/* Define the union csr_lcam_indrect_data_0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_indrect_data_0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_indrect_data_0_u;

/* Define the union csr_lcam_indrect_data_1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_indrect_data_1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_indrect_data_1_u;

/* Define the union csr_lcam_indrect_data_2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_indrect_data_2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_indrect_data_2_u;

/* Define the union csr_lcam_scan_period_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_scan_period : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_scan_period_u;

/* Define the union csr_lcam_scan_period_gra_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_scan_period_gra : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_scan_period_gra_u;

/* Define the union csr_lcam_scan_en_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_scan_en : 1; /* [0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_scan_en_u;

/* Define the union csr_lcam_common_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_block_gating : 5;             /* [4:0] */
        u32 rp_lcam_tcam_init_en : 1;        /* [5] */
        u32 rp_lcam_ag_init_en : 1;          /* [6] */
        u32 rp_check_en : 1;                 /* [7] */
        u32 sp_ram_tmod : 7;                 /* [14:8] */
        u32 sp_ret1n : 1;                    /* [15] */
        u32 rp_lcam_cnt_src_sel : 1;         /* [16] */
        u32 rp_lcam_cnt_en : 1;              /* [17] */
        u32 rp_lcam_resp_e0_en : 1;          /* [18] */
        u32 rp_tcam_search_low_power_en : 1; /* [19] */
        u32 rp_rx_async_fifo_wr_bp_thrd : 4; /* [23:20] */
        u32 rp_tx_async_fifo_wr_bp_thrd : 4; /* [27:24] */
        u32 rsv_2 : 4;                       /* [31:28] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_common_cfg_u;

/* Define the union csr_lcam_uncrt_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_uncrt_err_clr : 1;     /* [0] */
        u32 rp_lcam_api_drop_err_mask : 1; /* [1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_uncrt_err_u;

/* Define the union csr_lcam_wrr_weight_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_tcam_wrr_weight : 16; /* [15:0] */
        u32 rsv_3 : 16;                   /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_wrr_weight_u;

/* Define the union csr_lcam_ring_rx_rqst_correct_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_ring_rx_rqst_correct_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_rx_rqst_correct_cnt_u;

/* Define the union csr_lcam_ring_rx_rqst_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_ring_rx_rqst_err_cnt : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_rx_rqst_err_cnt_u;

/* Define the union csr_lcam_ring_rx_rqst_drop_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_ring_rx_rqst_drop_cnt : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_rx_rqst_drop_cnt_u;

/* Define the union csr_lcam_ring_tx_rqst_correct_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_ring_tx_rqst_correct_cnt : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_tx_rqst_correct_cnt_u;

/* Define the union csr_lcam_ring_tx_rqst_err_cnt_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_ring_tx_rqst_err_cnt : 8; /* [7:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_tx_rqst_err_cnt_u;

/* Define the union csr_lcam_int_vector_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 cpi_int_index : 24; /* [23:0] */
        u32 rsv_4 : 3;          /* [26:24] */
        u32 enable : 1;         /* [27] */
        u32 int_issue : 1;      /* [28] */
        u32 rsv_5 : 3;          /* [31:29] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_int_vector_u;

/* Define the union csr_lcam_int_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 int_data : 7;        /* [6:0] */
        u32 rsv_6 : 9;           /* [15:7] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_int_u;

/* Define the union csr_lcam_int_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 err_mask : 7;        /* [6:0] */
        u32 rsv_7 : 9;           /* [15:7] */
        u32 program_csr_id : 16; /* [31:16] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_int_mask_u;

/* Define the union csr_lcam_ring_itf_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 api_drop_err : 1;           /* [0] */
        u32 api_drop_merr : 1;          /* [1] */
        u32 miss_sop_err : 1;           /* [2] */
        u32 miss_sop_merr : 1;          /* [3] */
        u32 miss_eop_err : 1;           /* [4] */
        u32 miss_eop_merr : 1;          /* [5] */
        u32 illegal_op_id_err : 1;      /* [6] */
        u32 illegal_op_id_merr : 1;     /* [7] */
        u32 api_overlong_err : 1;       /* [8] */
        u32 api_overlong_merr : 1;      /* [9] */
        u32 api_tooshort_err : 1;       /* [10] */
        u32 api_tooshort_merr : 1;      /* [11] */
        u32 req_asyn_overflow_err : 1;  /* [12] */
        u32 req_asyn_overflow_merr : 1; /* [13] */
        u32 rsp_asyn_overflow_err : 1;  /* [14] */
        u32 rsp_asyn_overflow_merr : 1; /* [15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_itf_err_u;

/* Define the union csr_lcam_ring_itf_err_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 api_drop_err_mask : 1;          /* [0] */
        u32 miss_sop_err_mask : 1;          /* [1] */
        u32 miss_eop_err_mask : 1;          /* [2] */
        u32 illegal_op_id_err_mask : 1;     /* [3] */
        u32 api_overlong_err_mask : 1;      /* [4] */
        u32 api_tooshort_err_mask : 1;      /* [5] */
        u32 req_asyn_overflow_err_mask : 1; /* [6] */
        u32 rsp_asyn_overflow_err_mask : 1; /* [7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ring_itf_err_mask_u;

/* Define the union csr_lcam_ad_ecc_one_bit_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 17;         /* [18:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ad_ecc_one_bit_err_u;

/* Define the union csr_lcam_ad_ecc_two_bit_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 17;         /* [18:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ad_ecc_two_bit_err_u;

/* Define the union csr_lcam_tcam_ecc_one_bit_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 22;         /* [23:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_tcam_ecc_one_bit_err_u;

/* Define the union csr_lcam_tcam_ecc_two_bit_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 error_bit : 1;       /* [0] */
        u32 multi_error_bit : 1; /* [1] */
        u32 sticky : 22;         /* [23:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_tcam_ecc_two_bit_err_u;

/* Define the union csr_lcam_cmd_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ag_addr_outof_range_err : 1;  /* [0] */
        u32 ag_addr_outof_range_merr : 1; /* [1] */
        u32 tcam_op_addr_cmd_err : 1;     /* [2] */
        u32 tcam_op_addr_cmd_merr : 1;    /* [3] */
        u32 move_new_eq_old_err : 1;      /* [4] */
        u32 move_new_eq_old_merr : 1;     /* [5] */
        u32 move_len_outof_err : 1;       /* [6] */
        u32 move_len_outof_merr : 1;      /* [7] */
        u32 move_old_outof_err : 1;       /* [8] */
        u32 move_old_outof_merr : 1;      /* [9] */
        u32 move_new_outof_err : 1;       /* [10] */
        u32 move_new_outof_merr : 1;      /* [11] */
        u32 move_len_zero_err : 1;        /* [12] */
        u32 move_len_zero_merr : 1;       /* [13] */
        u32 target_blk_gating_err : 1;    /* [14] */
        u32 target_blk_gating_merr : 1;   /* [15] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_cmd_err_u;

/* Define the union csr_lcam_cmd_err_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 ag_addr_outof_range_err_mask : 1; /* [0] */
        u32 tcam_op_addr_cmd_err_mask : 1;    /* [1] */
        u32 move_new_eq_old_err_mask : 1;     /* [2] */
        u32 move_len_outof_err_mask : 1;      /* [3] */
        u32 move_old_outof_err_mask : 1;      /* [4] */
        u32 move_new_outof_err_mask : 1;      /* [5] */
        u32 move_len_zero_err_mask : 1;       /* [6] */
        u32 target_blk_gating_err_mask : 1;   /* [7] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_cmd_err_mask_u;

/* Define the union csr_lcam_init_status_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_tcam_init_done : 1; /* [0] */
        u32 lcam_ag_init_done : 1;   /* [1] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_init_status_u;

/* Define the union csr_lcam_ecc_err_inj_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 rp_lcam_ad_one_bit_err_inj_req : 1;   /* [0] */
        u32 rp_lcam_ad_two_bit_err_inj_req : 1;   /* [1] */
        u32 rp_lcam_tcam_one_bit_err_inj_req : 1; /* [2] */
        u32 rp_lcam_tcam_two_bit_err_inj_req : 1; /* [3] */
        u32 rsv_8 : 28;                           /* [31:4] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_ecc_err_inj_u;

/* Define the union csr_lcam_src_err_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_chk_err : 1;  /* [0] */
        u32 src_chk_merr : 1; /* [1] */
        u32 sticky : 5;       /* [6:2] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_src_err_u;

/* Define the union csr_lcam_src_err_mask_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_err_mask : 1; /* [0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_src_err_mask_u;

/* Define the union csr_lcam_src_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 src_cfg : 9; /* [8:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_src_cfg_u;

/* Define the union csr_lcam_src_cfg_node_id0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 node_id_tile0 : 5; /* [4:0] */
        u32 node_id_tile1 : 5; /* [9:5] */
        u32 node_id_tile2 : 5; /* [14:10] */
        u32 node_id_tile3 : 5; /* [19:15] */
        u32 node_id_tile4 : 5; /* [24:20] */
        u32 node_id_tile5 : 5; /* [29:25] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_src_cfg_node_id0_u;

/* Define the union csr_lcam_src_cfg_node_id1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 node_id_tile6 : 5; /* [4:0] */
        u32 node_id_tile7 : 5; /* [9:5] */
        u32 node_id_mpu : 5;   /* [14:10] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_src_cfg_node_id1_u;

/* Define the union csr_lcam_mem_ctrl_bus_cfg0_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_mem_ctrl_bus_cfg0 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_mem_ctrl_bus_cfg0_u;

/* Define the union csr_lcam_mem_ctrl_bus_cfg1_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_mem_ctrl_bus_cfg1 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_mem_ctrl_bus_cfg1_u;

/* Define the union csr_lcam_mem_ctrl_bus_cfg2_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_mem_ctrl_bus_cfg2 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_mem_ctrl_bus_cfg2_u;

/* Define the union csr_lcam_mem_ctrl_bus_cfg3_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_mem_ctrl_bus_cfg3 : 32; /* [31:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_mem_ctrl_bus_cfg3_u;

/* Define the union csr_lcam_mem_ctrl_bus_cfg4_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_mem_ctrl_bus_cfg4 : 6; /* [5:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_mem_ctrl_bus_cfg4_u;

/* Define the union csr_lcam_tcam_ctrl_bus_cfg_u */
typedef union {
    /* Define the struct bits */
    struct {
        u32 lcam_tcam_ctrl_bus_cfg : 10; /* [9:0] */
    } bits;

    /* Define an unsigned member */
    u32 value;
} csr_lcam_tcam_ctrl_bus_cfg_u;


// ==============================================================================
/* Define the global struct */
typedef struct {
    volatile csr_lcam_version_u lcam_version;                                   /* 0 */
    volatile csr_lcam_indrect_ctrl_u lcam_indrect_ctrl;                         /* 4 */
    volatile csr_lcam_indrect_timeout_u lcam_indrect_timeout;                   /* 8 */
    volatile csr_lcam_indrect_data_0_u lcam_indrect_data_0;                     /* C */
    volatile csr_lcam_indrect_data_1_u lcam_indrect_data_1;                     /* 10 */
    volatile csr_lcam_indrect_data_2_u lcam_indrect_data_2;                     /* 14 */
    volatile csr_lcam_scan_period_u lcam_scan_period;                           /* 18 */
    volatile csr_lcam_scan_period_gra_u lcam_scan_period_gra;                   /* 1C */
    volatile csr_lcam_scan_en_u lcam_scan_en;                                   /* 20 */
    volatile csr_lcam_common_cfg_u lcam_common_cfg;                             /* 24 */
    volatile csr_lcam_uncrt_err_u lcam_uncrt_err;                               /* 28 */
    volatile csr_lcam_wrr_weight_u lcam_wrr_weight;                             /* 2C */
    volatile csr_lcam_ring_rx_rqst_correct_cnt_u lcam_ring_rx_rqst_correct_cnt; /* 30 */
    volatile csr_lcam_ring_rx_rqst_err_cnt_u lcam_ring_rx_rqst_err_cnt;         /* 34 */
    volatile csr_lcam_ring_rx_rqst_drop_cnt_u lcam_ring_rx_rqst_drop_cnt;       /* 38 */
    volatile csr_lcam_ring_tx_rqst_correct_cnt_u lcam_ring_tx_rqst_correct_cnt; /* 3C */
    volatile csr_lcam_ring_tx_rqst_err_cnt_u lcam_ring_tx_rqst_err_cnt;         /* 40 */
    volatile csr_lcam_int_vector_u lcam_int_vector;                             /* 44 */
    volatile csr_lcam_int_u lcam_int;                                           /* 48 */
    volatile csr_lcam_int_mask_u lcam_int_mask;                                 /* 4C */
    volatile csr_lcam_ring_itf_err_u lcam_ring_itf_err;                         /* 50 */
    volatile csr_lcam_ring_itf_err_mask_u lcam_ring_itf_err_mask;               /* 54 */
    volatile csr_lcam_ad_ecc_one_bit_err_u lcam_ad_ecc_one_bit_err;             /* 58 */
    volatile csr_lcam_ad_ecc_two_bit_err_u lcam_ad_ecc_two_bit_err;             /* 5C */
    volatile csr_lcam_tcam_ecc_one_bit_err_u lcam_tcam_ecc_one_bit_err;         /* 60 */
    volatile csr_lcam_tcam_ecc_two_bit_err_u lcam_tcam_ecc_two_bit_err;         /* 64 */
    volatile csr_lcam_cmd_err_u lcam_cmd_err;                                   /* 68 */
    volatile csr_lcam_cmd_err_mask_u lcam_cmd_err_mask;                         /* 6C */
    volatile csr_lcam_init_status_u lcam_init_status;                           /* 70 */
    volatile csr_lcam_ecc_err_inj_u lcam_ecc_err_inj;                           /* 74 */
    volatile csr_lcam_src_err_u lcam_src_err;                                   /* 80 */
    volatile csr_lcam_src_err_mask_u lcam_src_err_mask;                         /* 84 */
    volatile csr_lcam_src_cfg_u lcam_src_cfg;                                   /* 88 */
    volatile csr_lcam_src_cfg_node_id0_u lcam_src_cfg_node_id0;                 /* 8C */
    volatile csr_lcam_src_cfg_node_id1_u lcam_src_cfg_node_id1;                 /* 90 */
    volatile csr_lcam_mem_ctrl_bus_cfg0_u lcam_mem_ctrl_bus_cfg0;               /* 94 */
    volatile csr_lcam_mem_ctrl_bus_cfg1_u lcam_mem_ctrl_bus_cfg1;               /* 98 */
    volatile csr_lcam_mem_ctrl_bus_cfg2_u lcam_mem_ctrl_bus_cfg2;               /* 9C */
    volatile csr_lcam_mem_ctrl_bus_cfg3_u lcam_mem_ctrl_bus_cfg3;               /* A0 */
    volatile csr_lcam_mem_ctrl_bus_cfg4_u lcam_mem_ctrl_bus_cfg4;               /* A4 */
    volatile csr_lcam_tcam_ctrl_bus_cfg_u lcam_tcam_ctrl_bus_cfg;               /* A8 */
} S_lcam_csr_REGS_TYPE;

/* Declare the struct pointor of the module lcam_csr */
extern volatile S_lcam_csr_REGS_TYPE *goplcam_csrAllReg;

/* Declare the functions that set the member value */
int iSetLCAM_VERSION_lcam_version(unsigned int ulcam_version);
int iSetLCAM_INDRECT_CTRL_lcam_indrect_addr(unsigned int ulcam_indrect_addr);
int iSetLCAM_INDRECT_CTRL_lcam_indrect_tab(unsigned int ulcam_indrect_tab);
int iSetLCAM_INDRECT_CTRL_lcam_indrect_status(unsigned int ulcam_indrect_status);
int iSetLCAM_INDRECT_CTRL_lcam_indrect_mode(unsigned int ulcam_indrect_mode);
int iSetLCAM_INDRECT_CTRL_lcam_indrect_vld(unsigned int ulcam_indrect_vld);
int iSetLCAM_INDRECT_TIMEOUT_lcam_indrect_timeout(unsigned int ulcam_indrect_timeout);
int iSetLCAM_INDRECT_DATA_0_lcam_indrect_data_0(unsigned int ulcam_indrect_data_0);
int iSetLCAM_INDRECT_DATA_1_lcam_indrect_data_1(unsigned int ulcam_indrect_data_1);
int iSetLCAM_INDRECT_DATA_2_lcam_indrect_data_2(unsigned int ulcam_indrect_data_2);
int iSetLCAM_SCAN_PERIOD_rp_lcam_scan_period(unsigned int urp_lcam_scan_period);
int iSetLCAM_SCAN_PERIOD_GRA_rp_lcam_scan_period_gra(unsigned int urp_lcam_scan_period_gra);
int iSetLCAM_SCAN_EN_rp_lcam_scan_en(unsigned int urp_lcam_scan_en);
int iSetLCAM_COMMON_CFG_rp_block_gating(unsigned int urp_block_gating);
int iSetLCAM_COMMON_CFG_rp_lcam_tcam_init_en(unsigned int urp_lcam_tcam_init_en);
int iSetLCAM_COMMON_CFG_rp_lcam_ag_init_en(unsigned int urp_lcam_ag_init_en);
int iSetLCAM_COMMON_CFG_rp_check_en(unsigned int urp_check_en);
int iSetLCAM_COMMON_CFG_sp_ram_tmod(unsigned int usp_ram_tmod);
int iSetLCAM_COMMON_CFG_sp_ret1n(unsigned int usp_ret1n);
int iSetLCAM_COMMON_CFG_rp_lcam_cnt_src_sel(unsigned int urp_lcam_cnt_src_sel);
int iSetLCAM_COMMON_CFG_rp_lcam_cnt_en(unsigned int urp_lcam_cnt_en);
int iSetLCAM_COMMON_CFG_rp_lcam_resp_e0_en(unsigned int urp_lcam_resp_e0_en);
int iSetLCAM_COMMON_CFG_rp_tcam_search_low_power_en(unsigned int urp_tcam_search_low_power_en);
int iSetLCAM_COMMON_CFG_rp_rx_async_fifo_wr_bp_thrd(unsigned int urp_rx_async_fifo_wr_bp_thrd);
int iSetLCAM_COMMON_CFG_rp_tx_async_fifo_wr_bp_thrd(unsigned int urp_tx_async_fifo_wr_bp_thrd);
int iSetLCAM_UNCRT_ERR_rp_lcam_uncrt_err_clr(unsigned int urp_lcam_uncrt_err_clr);
int iSetLCAM_UNCRT_ERR_rp_lcam_api_drop_err_mask(unsigned int urp_lcam_api_drop_err_mask);
int iSetLCAM_WRR_WEIGHT_rp_lcam_tcam_wrr_weight(unsigned int urp_lcam_tcam_wrr_weight);
int iSetLCAM_RING_RX_RQST_CORRECT_CNT_lcam_ring_rx_rqst_correct_cnt(unsigned int ulcam_ring_rx_rqst_correct_cnt);
int iSetLCAM_RING_RX_RQST_ERR_CNT_lcam_ring_rx_rqst_err_cnt(unsigned int ulcam_ring_rx_rqst_err_cnt);
int iSetLCAM_RING_RX_RQST_DROP_CNT_lcam_ring_rx_rqst_drop_cnt(unsigned int ulcam_ring_rx_rqst_drop_cnt);
int iSetLCAM_RING_TX_RQST_CORRECT_CNT_lcam_ring_tx_rqst_correct_cnt(unsigned int ulcam_ring_tx_rqst_correct_cnt);
int iSetLCAM_RING_TX_RQST_ERR_CNT_lcam_ring_tx_rqst_err_cnt(unsigned int ulcam_ring_tx_rqst_err_cnt);
int iSetLCAM_INT_VECTOR_cpi_int_index(unsigned int ucpi_int_index);
int iSetLCAM_INT_VECTOR_enable(unsigned int uenable);
int iSetLCAM_INT_VECTOR_int_issue(unsigned int uint_issue);
int iSetLCAM_INT_int_data(unsigned int uint_data);
int iSetLCAM_INT_program_csr_id(unsigned int uprogram_csr_id);
int iSetLCAM_INT_MASK_err_mask(unsigned int uerr_mask);
int iSetLCAM_INT_MASK_program_csr_id(unsigned int uprogram_csr_id);
int iSetLCAM_RING_ITF_ERR_api_drop_err(unsigned int uapi_drop_err);
int iSetLCAM_RING_ITF_ERR_api_drop_merr(unsigned int uapi_drop_merr);
int iSetLCAM_RING_ITF_ERR_miss_sop_err(unsigned int umiss_sop_err);
int iSetLCAM_RING_ITF_ERR_miss_sop_merr(unsigned int umiss_sop_merr);
int iSetLCAM_RING_ITF_ERR_miss_eop_err(unsigned int umiss_eop_err);
int iSetLCAM_RING_ITF_ERR_miss_eop_merr(unsigned int umiss_eop_merr);
int iSetLCAM_RING_ITF_ERR_illegal_op_id_err(unsigned int uillegal_op_id_err);
int iSetLCAM_RING_ITF_ERR_illegal_op_id_merr(unsigned int uillegal_op_id_merr);
int iSetLCAM_RING_ITF_ERR_api_overlong_err(unsigned int uapi_overlong_err);
int iSetLCAM_RING_ITF_ERR_api_overlong_merr(unsigned int uapi_overlong_merr);
int iSetLCAM_RING_ITF_ERR_api_tooshort_err(unsigned int uapi_tooshort_err);
int iSetLCAM_RING_ITF_ERR_api_tooshort_merr(unsigned int uapi_tooshort_merr);
int iSetLCAM_RING_ITF_ERR_req_asyn_overflow_err(unsigned int ureq_asyn_overflow_err);
int iSetLCAM_RING_ITF_ERR_req_asyn_overflow_merr(unsigned int ureq_asyn_overflow_merr);
int iSetLCAM_RING_ITF_ERR_rsp_asyn_overflow_err(unsigned int ursp_asyn_overflow_err);
int iSetLCAM_RING_ITF_ERR_rsp_asyn_overflow_merr(unsigned int ursp_asyn_overflow_merr);
int iSetLCAM_RING_ITF_ERR_MASK_api_drop_err_mask(unsigned int uapi_drop_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_miss_sop_err_mask(unsigned int umiss_sop_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_miss_eop_err_mask(unsigned int umiss_eop_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_illegal_op_id_err_mask(unsigned int uillegal_op_id_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_api_overlong_err_mask(unsigned int uapi_overlong_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_api_tooshort_err_mask(unsigned int uapi_tooshort_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_req_asyn_overflow_err_mask(unsigned int ureq_asyn_overflow_err_mask);
int iSetLCAM_RING_ITF_ERR_MASK_rsp_asyn_overflow_err_mask(unsigned int ursp_asyn_overflow_err_mask);
int iSetLCAM_AD_ECC_ONE_BIT_ERR_error_bit(unsigned int uerror_bit);
int iSetLCAM_AD_ECC_ONE_BIT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetLCAM_AD_ECC_ONE_BIT_ERR_sticky(unsigned int usticky);
int iSetLCAM_AD_ECC_TWO_BIT_ERR_error_bit(unsigned int uerror_bit);
int iSetLCAM_AD_ECC_TWO_BIT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetLCAM_AD_ECC_TWO_BIT_ERR_sticky(unsigned int usticky);
int iSetLCAM_TCAM_ECC_ONE_BIT_ERR_error_bit(unsigned int uerror_bit);
int iSetLCAM_TCAM_ECC_ONE_BIT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetLCAM_TCAM_ECC_ONE_BIT_ERR_sticky(unsigned int usticky);
int iSetLCAM_TCAM_ECC_TWO_BIT_ERR_error_bit(unsigned int uerror_bit);
int iSetLCAM_TCAM_ECC_TWO_BIT_ERR_multi_error_bit(unsigned int umulti_error_bit);
int iSetLCAM_TCAM_ECC_TWO_BIT_ERR_sticky(unsigned int usticky);
int iSetLCAM_CMD_ERR_ag_addr_outof_range_err(unsigned int uag_addr_outof_range_err);
int iSetLCAM_CMD_ERR_ag_addr_outof_range_merr(unsigned int uag_addr_outof_range_merr);
int iSetLCAM_CMD_ERR_tcam_op_addr_cmd_err(unsigned int utcam_op_addr_cmd_err);
int iSetLCAM_CMD_ERR_tcam_op_addr_cmd_merr(unsigned int utcam_op_addr_cmd_merr);
int iSetLCAM_CMD_ERR_move_new_eq_old_err(unsigned int umove_new_eq_old_err);
int iSetLCAM_CMD_ERR_move_new_eq_old_merr(unsigned int umove_new_eq_old_merr);
int iSetLCAM_CMD_ERR_move_len_outof_err(unsigned int umove_len_outof_err);
int iSetLCAM_CMD_ERR_move_len_outof_merr(unsigned int umove_len_outof_merr);
int iSetLCAM_CMD_ERR_move_old_outof_err(unsigned int umove_old_outof_err);
int iSetLCAM_CMD_ERR_move_old_outof_merr(unsigned int umove_old_outof_merr);
int iSetLCAM_CMD_ERR_move_new_outof_err(unsigned int umove_new_outof_err);
int iSetLCAM_CMD_ERR_move_new_outof_merr(unsigned int umove_new_outof_merr);
int iSetLCAM_CMD_ERR_move_len_zero_err(unsigned int umove_len_zero_err);
int iSetLCAM_CMD_ERR_move_len_zero_merr(unsigned int umove_len_zero_merr);
int iSetLCAM_CMD_ERR_target_blk_gating_err(unsigned int utarget_blk_gating_err);
int iSetLCAM_CMD_ERR_target_blk_gating_merr(unsigned int utarget_blk_gating_merr);
int iSetLCAM_CMD_ERR_MASK_ag_addr_outof_range_err_mask(unsigned int uag_addr_outof_range_err_mask);
int iSetLCAM_CMD_ERR_MASK_tcam_op_addr_cmd_err_mask(unsigned int utcam_op_addr_cmd_err_mask);
int iSetLCAM_CMD_ERR_MASK_move_new_eq_old_err_mask(unsigned int umove_new_eq_old_err_mask);
int iSetLCAM_CMD_ERR_MASK_move_len_outof_err_mask(unsigned int umove_len_outof_err_mask);
int iSetLCAM_CMD_ERR_MASK_move_old_outof_err_mask(unsigned int umove_old_outof_err_mask);
int iSetLCAM_CMD_ERR_MASK_move_new_outof_err_mask(unsigned int umove_new_outof_err_mask);
int iSetLCAM_CMD_ERR_MASK_move_len_zero_err_mask(unsigned int umove_len_zero_err_mask);
int iSetLCAM_CMD_ERR_MASK_target_blk_gating_err_mask(unsigned int utarget_blk_gating_err_mask);
int iSetLCAM_INIT_STATUS_lcam_tcam_init_done(unsigned int ulcam_tcam_init_done);
int iSetLCAM_INIT_STATUS_lcam_ag_init_done(unsigned int ulcam_ag_init_done);
int iSetLCAM_ECC_ERR_INJ_rp_lcam_ad_one_bit_err_inj_req(unsigned int urp_lcam_ad_one_bit_err_inj_req);
int iSetLCAM_ECC_ERR_INJ_rp_lcam_ad_two_bit_err_inj_req(unsigned int urp_lcam_ad_two_bit_err_inj_req);
int iSetLCAM_ECC_ERR_INJ_rp_lcam_tcam_one_bit_err_inj_req(unsigned int urp_lcam_tcam_one_bit_err_inj_req);
int iSetLCAM_ECC_ERR_INJ_rp_lcam_tcam_two_bit_err_inj_req(unsigned int urp_lcam_tcam_two_bit_err_inj_req);
int iSetLCAM_SRC_ERR_src_chk_err(unsigned int usrc_chk_err);
int iSetLCAM_SRC_ERR_src_chk_merr(unsigned int usrc_chk_merr);
int iSetLCAM_SRC_ERR_sticky(unsigned int usticky);
int iSetLCAM_SRC_ERR_MASK_src_err_mask(unsigned int usrc_err_mask);
int iSetLCAM_SRC_CFG_src_cfg(unsigned int usrc_cfg);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile0(unsigned int unode_id_tile0);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile1(unsigned int unode_id_tile1);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile2(unsigned int unode_id_tile2);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile3(unsigned int unode_id_tile3);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile4(unsigned int unode_id_tile4);
int iSetLCAM_SRC_CFG_NODE_ID0_node_id_tile5(unsigned int unode_id_tile5);
int iSetLCAM_SRC_CFG_NODE_ID1_node_id_tile6(unsigned int unode_id_tile6);
int iSetLCAM_SRC_CFG_NODE_ID1_node_id_tile7(unsigned int unode_id_tile7);
int iSetLCAM_SRC_CFG_NODE_ID1_node_id_mpu(unsigned int unode_id_mpu);
int iSetLCAM_MEM_CTRL_BUS_CFG0_lcam_mem_ctrl_bus_cfg0(unsigned int ulcam_mem_ctrl_bus_cfg0);
int iSetLCAM_MEM_CTRL_BUS_CFG1_lcam_mem_ctrl_bus_cfg1(unsigned int ulcam_mem_ctrl_bus_cfg1);
int iSetLCAM_MEM_CTRL_BUS_CFG2_lcam_mem_ctrl_bus_cfg2(unsigned int ulcam_mem_ctrl_bus_cfg2);
int iSetLCAM_MEM_CTRL_BUS_CFG3_lcam_mem_ctrl_bus_cfg3(unsigned int ulcam_mem_ctrl_bus_cfg3);
int iSetLCAM_MEM_CTRL_BUS_CFG4_lcam_mem_ctrl_bus_cfg4(unsigned int ulcam_mem_ctrl_bus_cfg4);
int iSetLCAM_TCAM_CTRL_BUS_CFG_lcam_tcam_ctrl_bus_cfg(unsigned int ulcam_tcam_ctrl_bus_cfg);


#endif // LCAM_C_UNION_DEFINE_H
